<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<link href="../css/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
   .art_ul {}
   .art_ul li{padding:2px;display:block;border:1px solid red;overflow: hidden;border:1px solid #666;}
   .art_ul li img{width:120px;height:88px;}
   .art_ul div{float:left;padding:2px;}
   .content_main table td {text-align: left;}
</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">淘宝商品管理->添加|编辑淘宝商品信息</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;">淘宝商品基本信息 </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/product/su_product_alima.shtml"   name="form01" method="post" enctype="multipart/form-data">
    <input name="id" value="${product.id}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
   
      <tr>
        <td width="15%" style="border-left:none" align="right">商品名称：</td>
        <td width=""><input name="pd.productName" type="text" value="${product.productName}" style="width:240px;" class="inputwidth01" id="product.productName" maxlength="30" /> <span style="color:red;">*</span>
        </td>
      </tr>
      
      <tr>
        <td width="15%" style="border-left:none" align="right">来源：</td>
        <td width="">
             <select name="pd.source">
                <option value="">请选择...</option>
                <app:statusSelect value="${product.source}" type="channel"></app:statusSelect>
             </select>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">宠物类型：</td>
        <td width="">
             <select name="pd.petCate">
                <option value="">全部</option>
                <app:cons_select code="003" value="${product.petCate}"></app:cons_select>
             </select>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">商品分类：</td>
        <td width="">
             <select name="pd.productCate">
                <option value="">请选择...</option>
                <app:cons_select code="001" value="${product.productCate}" type="tree"></app:cons_select>
             </select>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">商品图片：</td>
        <td width=""><input name="imgFile" value="" type="file" size="20"  class="inputwidth01"  />
        <c:if test="${!empty product.icoPath}">
          <br/><app:image src="${product.icoPath}"></app:image>
        </c:if>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">商品价格：</td>
        <td width=""><input name="pd.productPrice" type="text" value="${product.productPrice}"  class="inputwidth01" style="width:60px" onkeypress="util.justNum([46]);" id="product.productPrice" maxlength="12" /> 元 <span style="color:red;">*</span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">促销价格：</td>
        <td width=""><input name="pd.salePrice" type="text" value="${product.salePrice}"  class="inputwidth01" style="width:60px" onkeypress="util.justNum([46]);" id="product.salePrice" maxlength="12" /> 元<span style="color:red;">*</span>
        </td>
      </tr>
     <tr>
        <td width="15%" style="border-left:none" align="right">商品链接：</td>
        <td width=""><input name="pd.productHref" type="text" value="${product.productHref}"  class="inputwidth01" style="width:460px" id="product.productHref" maxlength="200" />  <span style="color:red;">*</span>
        </td>
      </tr>
      
      <tr>
        <td width="15%" style="border-left:none" align="right">状态：</td>
        <td width="">
         <select id="pd.state" name="pd.state">  
		    <option value="0" <c:if test="${product.state eq 0 }"></c:if>  >已下架</option>  
		    <option value="1" <c:if test="${product.state eq 0 }"></c:if> >已上架</option>  
		</select>  
        </td>
      </tr> 
    
       <tr>
        <td width="15%" style="border-left:none" align="right">描述：</td>
        <td width=""><input name="pd.productDescription" type="text" value="${product.productDescription}"  class="inputwidth01" style="width:660px" id="product.productDescription" maxlength="512" />  <span style="color:red;">*</span>
        </td>
      </tr> 
       
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit();"/>&nbsp;
  <input name="" type="button" class="input01" value="返回列表" onclick="javascript:document.location='/product/search_pro_alima.shtml'"/></span></div>
  
</div>
 <iframe  style="display:none" src="about:blank" name="ifrComposeAttachUpload"></iframe>
</body>
</html>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> 
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/page.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>
<script type="text/javascript">
 
validate.addvalidte(document.form01,{
        rules:{
           "pd.productName":{checkNull:true},
           },
	    message:{
	    }
	    });
 

</script>